<div class="<?php if(empty($homemessage['data']['image'])) echo "detailsnoimg" ; else echo "detailsimg";?>">
	<?php if(!empty($homemessage['data']['image'])): ?>
		<div class="detailsmessageimage">
			<?php if(!empty($homemessage['data']['image'][0] )): ?>
				<img  src="<?php echo $homemessage['data']['image'][0] ?>/460" alt="" >
			<?php endif; ?>
		</div>
	<?php endif; ?>

	<div class="detailheaderimg">
		<img id = "detailimg" src="<?php echo $homemessage['data']['head'] ?>/50" alt="" class = 'messageheader'>
		<span  id = "detailname" ><?php echo $homemessage['data']['nick'] ?></span>
	</div>
	<div class = "messagecontent">
		<p>
			<?php echo $homemessage['data']['text'] ?>
		</p>
	</div>

	<?php if(!empty($homemessage["source"])): ?>
	<div class="retweetedbox">
		<img src="<?php echo $homemessage['source']['head']?>/50" alt="" class = 'messageheader'>
		<span><?php echo $homemessage['source']['nick'] ;?></span>
		<div class="retweetedboxcontent">
			<p>
				<?php echo $homemessage['source']['text'] ?>
			</p>
		</div>
	</div>
	<?php endif;?>

	<div class="comentbox">
		<?php if(!empty($coment['comments'])): ?>
			<?php foreach($coment['comments'] as $value ) :?>
				<div class="coment">
					<img src="<?php echo $value['user']['profile_image_url'] ?>" alt="">
					<span><?php echo $value['user']['screen_name'] ?></span>
					<p>
						<?php echo $value['text'] ?>
					</p>
				</div>
			<?php endforeach;?>
		<?php endif; ?>
	</div>

	<div id = "pinglun">
		<form action="<?php $this->create_url('tengxun/pinglun'); ?>" method = "POST">

			<textarea name="pinglun" id="pinglun" cols="30" rows="4"></textarea>
			<input type="submit" name = "submit" value = "评论">
 			<input type="text" name = "mid" value = "<?php echo $homemessage['data']['id'] ?>">
		</form>
	</div>
</div>
